﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.behavioralmodule.Strategy
{
    class program
    {
        //主要是将算法独立抽象后，一定要有上下文进行  聚合它
        void main()
        {
            var con = new Context(new ConcreteStrategyA());
            con.ContextInterface();

            con=new Context(new ConcreteStrategyB());
            con.ContextInterface();

            con=new Context(new ConcreteStrategyC());
            con.ContextInterface();
        }
    }
}
